package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.BxdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface BxdService extends BaseService<BxdBean> {

	BxdBean getBxdBeanById(String id) throws Exception;
	
	void removeBxdBeanById(String id) throws Exception;
	
	void removeBxdBeanByIds(String ids) throws Exception;
	
	BxdBean saveBxdBean(BxdBean crm) throws Exception;
	
	BxdBean updateBxdBean(BxdBean crm) throws Exception;
	
	Page<BxdBean>  findBxdBeanByCond(BxdBean bean,
			Page<BxdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveBxdBeanExt(String sql) throws Exception;

	String findBxdBeanExtCreate(String tableName) throws Exception;

	String findBxdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findBxdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasBxdBeanExtData(String tableName, String id)
			throws Exception;
}